#pragma once

#include "NFServerComm/NFServerCommon/NFIDescStore.h"
#include "NFServerComm/NFServerCommon/NFIDescTemplate.h"
#include "NFLogicCommon/NFDescStoreMacrosDefine.h"
#include "NFLogicCommon/NFDescStoreTypeDefines.h"
#include "E_ChatMsg.nanopb.h"
#ifndef MAX_CHATMSG_CHATMSG_NUM
#define MAX_CHATMSG_CHATMSG_NUM 50
#endif

class ChatMsgDesc : public NFI_DESC_TEMPLATE_MACRO(ChatMsgDesc, E_ChatMsg, EOT_CONST_CHATMSG_CHATMSG_DESC_ID, MAX_CHATMSG_CHATMSG_NUM)
public:
	ChatMsgDesc();
	virtual ~ChatMsgDesc();
	int CreateInit();
	int ResumeInit();
public:
	int Load(NFResDb *pDB) override;
	int LoadDB(NFResDb *pDB) override;
	int CheckWhenAllDataLoaded() override;
};
